<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: libs/atomic.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6719ab1f1f7655efc2fa43f7eb574fd1.html">libs</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">atomic.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><div class="dynheader">
此图展示该文件直接或间接的被哪些文件引用了:</div>
<div class="dyncontent">
<div class="center"><img src="atomic_8h__dep__incl.gif" border="0" usemap="#alibs_2atomic_8hdep" alt=""/></div>
<map name="alibs_2atomic_8hdep" id="alibs_2atomic_8hdep">
<area shape="rect" title=" " alt="" coords="565,5,672,32"/>
<area shape="rect" href="memlayout_8h.html" title=" " alt="" coords="660,80,831,107"/>
<area shape="rect" href="pmm_8h.html" title=" " alt="" coords="351,155,481,181"/>
<area shape="rect" href="swapfs_8h.html" title=" " alt="" coords="835,304,963,331"/>
<area shape="rect" href="swap_8c.html" title=" " alt="" coords="1087,379,1217,405"/>
<area shape="rect" href="pmm_8c.html" title=" " alt="" coords="291,304,421,331"/>
<area shape="rect" href="swap_8h.html" title=" " alt="" coords="732,229,863,256"/>
<area shape="rect" href="trap_8c.html" title=" " alt="" coords="1467,304,1589,331"/>
<area shape="rect" href="vmm_8h.html" title=" " alt="" coords="629,155,760,181"/>
<area shape="rect" href="swapfs_8c.html" title=" " alt="" coords="683,379,810,405"/>
<area shape="rect" href="init_8c.html" title=" " alt="" coords="445,304,555,331"/>
<area shape="rect" href="default__pmm_8c.html" title=" " alt="" coords="85,304,267,331"/>
<area shape="rect" href="default__pmm_8h.html" title=" " alt="" coords="170,229,353,256"/>
<area shape="rect" href="vmm_8c.html" title=" " alt="" coords="579,304,709,331"/>
<area shape="rect" href="swap__clock_8c.html" title=" " alt="" coords="1253,379,1424,405"/>
<area shape="rect" href="swap__clock_8h.html" title=" " alt="" coords="1221,304,1392,331"/>
<area shape="rect" href="swap__fifo_8c.html" title=" " alt="" coords="880,379,1037,405"/>
<area shape="rect" href="swap__fifo_8h.html" title=" " alt="" coords="987,304,1146,331"/>
</map>
</div>
</div>
<p><a href="atomic_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a2f660aa23a5dbc0f4b8df48b4302b8c3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="atomic_8h.html#a2f660aa23a5dbc0f4b8df48b4302b8c3">BITS_PER_LONG</a>&#160;&#160;&#160;__riscv_xlen</td></tr>
<tr class="separator:a2f660aa23a5dbc0f4b8df48b4302b8c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f4237211a2af41cbbc5701d1507812e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="atomic_8h.html#a7f4237211a2af41cbbc5701d1507812e">BIT_MASK</a>(nr)&#160;&#160;&#160;(1UL &lt;&lt; ((nr) % <a class="el" href="atomic_8h.html#a2f660aa23a5dbc0f4b8df48b4302b8c3">BITS_PER_LONG</a>))</td></tr>
<tr class="separator:a7f4237211a2af41cbbc5701d1507812e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1d7bafbfefe720ffcfd2155cc451ba6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="atomic_8h.html#aa1d7bafbfefe720ffcfd2155cc451ba6">BIT_WORD</a>(nr)&#160;&#160;&#160;((nr) / <a class="el" href="atomic_8h.html#a2f660aa23a5dbc0f4b8df48b4302b8c3">BITS_PER_LONG</a>)</td></tr>
<tr class="separator:aa1d7bafbfefe720ffcfd2155cc451ba6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a39c5c321bffa84fb918ce4c0c56f0d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="atomic_8h.html#a8a39c5c321bffa84fb918ce4c0c56f0d">__test_and_op_bit</a>(op,  mod,  nr,  addr)</td></tr>
<tr class="separator:a8a39c5c321bffa84fb918ce4c0c56f0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a456d46b8ac2caf38d48fba033c080a82"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="atomic_8h.html#a456d46b8ac2caf38d48fba033c080a82">__op_bit</a>(op,  mod,  nr,  addr)</td></tr>
<tr class="separator:a456d46b8ac2caf38d48fba033c080a82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78880d18ef4c87b39644633ea81e130b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="atomic_8h.html#a78880d18ef4c87b39644633ea81e130b">__NOP</a>(x)&#160;&#160;&#160;(x)</td></tr>
<tr class="separator:a78880d18ef4c87b39644633ea81e130b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae985c1be976be244cccc3d16c1232c92"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="atomic_8h.html#ae985c1be976be244cccc3d16c1232c92">__NOT</a>(x)&#160;&#160;&#160;(~(x))</td></tr>
<tr class="separator:ae985c1be976be244cccc3d16c1232c92"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a5d15f6a3002f1add23fb15694d775a9d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="atomic_8h.html#a5d15f6a3002f1add23fb15694d775a9d">set_bit</a> (int nr, volatile void *addr) <a class="el" href="init_8c.html#a189705fbc4254ff3cc332e052cd13215">__attribute__</a>((always_inline))</td></tr>
<tr class="separator:a5d15f6a3002f1add23fb15694d775a9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9556608513fd1919d15807516d5a600d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="atomic_8h.html#a9556608513fd1919d15807516d5a600d">clear_bit</a> (int nr, volatile void *addr) <a class="el" href="init_8c.html#a189705fbc4254ff3cc332e052cd13215">__attribute__</a>((always_inline))</td></tr>
<tr class="separator:a9556608513fd1919d15807516d5a600d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46b27dd4230b5ca02b39f11952cbb7bf"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="atomic_8h.html#a46b27dd4230b5ca02b39f11952cbb7bf">change_bit</a> (int nr, volatile void *addr) <a class="el" href="init_8c.html#a189705fbc4254ff3cc332e052cd13215">__attribute__</a>((always_inline))</td></tr>
<tr class="separator:a46b27dd4230b5ca02b39f11952cbb7bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a616f144debcc6c70f383f8709c989595"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="defs_8h.html#a1062901a7428fdd9c7f180f5e01ea056">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="atomic_8h.html#a616f144debcc6c70f383f8709c989595">test_bit</a> (int nr, volatile void *addr) <a class="el" href="init_8c.html#a189705fbc4254ff3cc332e052cd13215">__attribute__</a>((always_inline))</td></tr>
<tr class="separator:a616f144debcc6c70f383f8709c989595"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1e490e1026086ea8ebab09b95676b45"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="defs_8h.html#a1062901a7428fdd9c7f180f5e01ea056">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="atomic_8h.html#aa1e490e1026086ea8ebab09b95676b45">test_and_set_bit</a> (int nr, volatile void *addr) <a class="el" href="init_8c.html#a189705fbc4254ff3cc332e052cd13215">__attribute__</a>((always_inline))</td></tr>
<tr class="separator:aa1e490e1026086ea8ebab09b95676b45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a699223c4f7c0a293ef3855964d3a315b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="defs_8h.html#a1062901a7428fdd9c7f180f5e01ea056">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="atomic_8h.html#a699223c4f7c0a293ef3855964d3a315b">test_and_clear_bit</a> (int nr, volatile void *addr) <a class="el" href="init_8c.html#a189705fbc4254ff3cc332e052cd13215">__attribute__</a>((always_inline))</td></tr>
<tr class="separator:a699223c4f7c0a293ef3855964d3a315b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="a78880d18ef4c87b39644633ea81e130b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78880d18ef4c87b39644633ea81e130b">&#9670;&nbsp;</a></span>__NOP</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __NOP</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;(x)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ae985c1be976be244cccc3d16c1232c92"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae985c1be976be244cccc3d16c1232c92">&#9670;&nbsp;</a></span>__NOT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __NOT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;(~(x))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a456d46b8ac2caf38d48fba033c080a82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a456d46b8ac2caf38d48fba033c080a82">&#9670;&nbsp;</a></span>__op_bit</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __op_bit</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">op, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">mod, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">nr, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">addr&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">    __asm__ __volatile__(__AMO(op) <span class="stringliteral">&quot; zero, %1, %0&quot;</span>  \</div>
<div class="line">                         : <span class="stringliteral">&quot;+A&quot;</span>(addr[<a class="code" href="atomic_8h.html#aa1d7bafbfefe720ffcfd2155cc451ba6">BIT_WORD</a>(nr)]) \</div>
<div class="line">                         : <span class="stringliteral">&quot;r&quot;</span>(mod(<a class="code" href="atomic_8h.html#a7f4237211a2af41cbbc5701d1507812e">BIT_MASK</a>(nr))))</div>
<div class="ttc" id="aatomic_8h_html_a7f4237211a2af41cbbc5701d1507812e"><div class="ttname"><a href="atomic_8h.html#a7f4237211a2af41cbbc5701d1507812e">BIT_MASK</a></div><div class="ttdeci">#define BIT_MASK(nr)</div><div class="ttdef"><b>Definition:</b> atomic.h:30</div></div>
<div class="ttc" id="aatomic_8h_html_aa1d7bafbfefe720ffcfd2155cc451ba6"><div class="ttname"><a href="atomic_8h.html#aa1d7bafbfefe720ffcfd2155cc451ba6">BIT_WORD</a></div><div class="ttdeci">#define BIT_WORD(nr)</div><div class="ttdef"><b>Definition:</b> atomic.h:31</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a8a39c5c321bffa84fb918ce4c0c56f0d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a39c5c321bffa84fb918ce4c0c56f0d">&#9670;&nbsp;</a></span>__test_and_op_bit</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __test_and_op_bit</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">op, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">mod, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">nr, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">addr&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">    ({                                                               \</div>
<div class="line">        unsigned <span class="keywordtype">long</span> __res, __mask;                                 \</div>
<div class="line">        __mask = <a class="code" href="atomic_8h.html#a7f4237211a2af41cbbc5701d1507812e">BIT_MASK</a>(nr);                                       \</div>
<div class="line">        __asm__ __volatile__(__AMO(op) <span class="stringliteral">&quot; %0, %2, %1&quot;</span>                 \</div>
<div class="line">                             : <span class="stringliteral">&quot;=r&quot;</span>(__res), <span class="stringliteral">&quot;+A&quot;</span>(addr[<a class="code" href="atomic_8h.html#aa1d7bafbfefe720ffcfd2155cc451ba6">BIT_WORD</a>(nr)]) \</div>
<div class="line">                             : <span class="stringliteral">&quot;r&quot;</span>(mod(__mask)));                    \</div>
<div class="line">        ((__res &amp; __mask) != 0);                                     \</div>
<div class="line">    })</div>
</div><!-- fragment -->
</div>
</div>
<a id="a7f4237211a2af41cbbc5701d1507812e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f4237211a2af41cbbc5701d1507812e">&#9670;&nbsp;</a></span>BIT_MASK</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define BIT_MASK</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">nr</td><td>)</td>
          <td>&#160;&#160;&#160;(1UL &lt;&lt; ((nr) % <a class="el" href="atomic_8h.html#a2f660aa23a5dbc0f4b8df48b4302b8c3">BITS_PER_LONG</a>))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aa1d7bafbfefe720ffcfd2155cc451ba6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1d7bafbfefe720ffcfd2155cc451ba6">&#9670;&nbsp;</a></span>BIT_WORD</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define BIT_WORD</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">nr</td><td>)</td>
          <td>&#160;&#160;&#160;((nr) / <a class="el" href="atomic_8h.html#a2f660aa23a5dbc0f4b8df48b4302b8c3">BITS_PER_LONG</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a2f660aa23a5dbc0f4b8df48b4302b8c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f660aa23a5dbc0f4b8df48b4302b8c3">&#9670;&nbsp;</a></span>BITS_PER_LONG</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define BITS_PER_LONG&#160;&#160;&#160;__riscv_xlen</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="a46b27dd4230b5ca02b39f11952cbb7bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46b27dd4230b5ca02b39f11952cbb7bf">&#9670;&nbsp;</a></span>change_bit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void change_bit </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">volatile void *&#160;</td>
          <td class="paramname"><em>addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a9556608513fd1919d15807516d5a600d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9556608513fd1919d15807516d5a600d">&#9670;&nbsp;</a></span>clear_bit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void clear_bit </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">volatile void *&#160;</td>
          <td class="paramname"><em>addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a5d15f6a3002f1add23fb15694d775a9d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d15f6a3002f1add23fb15694d775a9d">&#9670;&nbsp;</a></span>set_bit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void set_bit </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">volatile void *&#160;</td>
          <td class="paramname"><em>addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a699223c4f7c0a293ef3855964d3a315b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a699223c4f7c0a293ef3855964d3a315b">&#9670;&nbsp;</a></span>test_and_clear_bit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="defs_8h.html#a1062901a7428fdd9c7f180f5e01ea056">bool</a> test_and_clear_bit </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">volatile void *&#160;</td>
          <td class="paramname"><em>addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aa1e490e1026086ea8ebab09b95676b45"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1e490e1026086ea8ebab09b95676b45">&#9670;&nbsp;</a></span>test_and_set_bit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="defs_8h.html#a1062901a7428fdd9c7f180f5e01ea056">bool</a> test_and_set_bit </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">volatile void *&#160;</td>
          <td class="paramname"><em>addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a616f144debcc6c70f383f8709c989595"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a616f144debcc6c70f383f8709c989595">&#9670;&nbsp;</a></span>test_bit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="defs_8h.html#a1062901a7428fdd9c7f180f5e01ea056">bool</a> test_bit </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">volatile void *&#160;</td>
          <td class="paramname"><em>addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
